const Base = require('./base.js');

module.exports = class extends Base {
  async indexAction() {
    let msg = {
      serverName: '峡谷之巅',
      password: '123'
    }
    //orm映射
    // let userList = await this.model().table('user').select();
    let userList = await this.model('man').getUserList();
    console.log(userList);
    this.assign(userList[0]);
    // return this.display('xuanjiajun'); 指定渲染模板的位置
    return this.display();
  }
};
